package com.example.springboot.service;

import com.example.springboot.controller.request.AdminPageRequest;
import com.example.springboot.controller.request.BasePageRequest;
import com.example.springboot.entity.Category;

import java.util.List;

/**
 * ClassName:CateGoryService
 * Package:com.example.springboot.service
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/6 - 14:36
 */
public interface CategoryService {
    List<Category> list();

    Object page(BasePageRequest basePageRequest);

    void save(Category category);

    Category getById(int id);

    void update(Category category);

    void deleteById(int id);

    Category getByName(String name);
}
